package dubbo.demo.impl;

import dubbo.demo.DemoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;

public class DemoServiceImpl implements DemoService {
    private final Logger log = LoggerFactory.getLogger(this.getClass());
    public List<String> getPermissions(Long id) {
        log.info("DemoServiceImpl................0");
        List<String> demo = new ArrayList<String>();
        demo.add(String.format("Permission_%d", id - 1));
        demo.add(String.format("Permission_%d", id));
        demo.add(String.format("Permission_%d", id + 1));
        return demo;
    }
}